package hyl.core.fun;

import java.util.ArrayList;
import java.util.List;

public class MyAnalyze {

	public static List<String> get不在L2中(List<String> l1, List<String> l2) {
		List<String> l1比l2多 = new ArrayList<>();
		for (String s1 : l1) {
			boolean flag = false;
			for (String s2 : l2) {
				if (s1.equals(s2)) {
					flag = true;
					break;
				}
			}
			if (!flag)
				l1比l2多.add(s1);
		}
		return l1比l2多;
	}

	public static List<String> get交集(List<String> l1, List<String> l2) {
		List<String> 交集 = new ArrayList<>();
		for (String s1 : l1) {
			boolean flag = false;
			for (String s2 : l2) {
				if (s1.equals(s2)) {
					flag = true;
					break;
				}
			}
			if (flag)
				交集.add(s1);
		}
		return 交集;
	}
}
